package com.kingmed.kmss.admin.modules.ums.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kingmed.kmss.admin.modules.ums.model.*;
import com.kingmed.kmss.common.dto.admin.ums.simple.AdminSimpleDTO;

import java.util.List;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 */
public interface UmsAdminMapper extends BaseMapper<UmsAdmin> {

    List<UmsResource> getResourceList(Long adminId, Long menuId);

    List<UmsRole> getRoleList(Long adminId);

    List<UmsMenu> getMenuList(Long adminId);

    List<Long> getAdminIdList(Long resourceId);

    UmsAdmin selectUserByUsername(String username);

    List<UmsOrganization> getOrgList(Long adminId);

    List<UmsAdmin> selectByNameKeyWord(String nameKeyword);

    UmsAdmin oaLoginQuery(String oaLoginId);

    AdminSimpleDTO getSimpleAdminById(Long adminId);
}
